<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/30
  Time: 8:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>

<body>
<!-- Bootstrap core CSS -->


<!-- 引入 layui.css -->
<link rel="stylesheet" href="/css/layui.css" media="all">
<form class="form-signin" action="login" method="post">
    <h1 class="h3 mb-3 font-weight-normal">管理员登录</h1>
<%--    <p style="color: red;margin-bottom: 1rem;" >${msg}</p>--%>
    <input type="text" class="form-control name" name="username"  required="" autofocus="">
    <input type="password" class="form-control pwd" name="password"  required="">
    <div class="checkbox mb-3">
        <label>
            <input type="checkbox" name="autoLogin" value="autoLogin" style="position: relative; top: 2px;">记住我
        </label>
    </div>
    <button class="btn btn-lg btn-primary btn-block sub" type="submit">登录</button>
</form>

</body>
<script src="js/jquery-3.2.1.slim.min.js"></script>
<script src="//unpkg.com/layui@2.6.5/dist/layui.js"></script>
<script>
    // $('.sub').click(function () {
    //     layer.load(2);
    //
    //     if($('.name').val().length<2){
    //         $('.name').focus()
    //         return;
    //     }
    //     if($('.pwd').val().length<2){
    //         $('.pwd').focus()
    //         return;
    //     }
    //     if($('#remember').is(':checked')) {
    //         $('#remember').val('true')
    //     }
    //     $('form').submit();
    //
    // })
</script>
</html>
